package com.wave.common.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum PathPointEnum {


    PATH_POINT_1101(1,1101),

    PATH_POINT_1201(2,1201),

    PATH_POINT_1301(3,1301),

    PATH_POINT_1401(4,1401),

    PATH_POINT_1501(5,1501),

    PATH_POINT_1601(6,1601),

    PATH_POINT_1701(7,1701),

    PATH_POINT_1801(8,1801);


    private Integer cacheBit;

    private Integer pathPoint;


    public static PathPointEnum getPathPoint(Integer cacheBit) {
        for (PathPointEnum value : values()) {
            if (cacheBit.equals(value.getCacheBit())) {
                return value;
            }
        }
        throw new RuntimeException("'PathPoint' not found By " + cacheBit);
    }

}
